package practice1_100;

public class Practice87 {
    public boolean isScramble(String s1, String s2) {
        int a=s1.length();
        for (int i = 0; i <a ; i++) {

        }
        return false;
    }

    public String scramble(String s1,int start,int end,int sert){
        if(start==end||start>sert||end<sert) return s1;
        s1=s1.substring(0,start)+s1.substring(start,sert)+s1.substring(sert,end+1)+s1.substring(end+1);
        return s1;
    }
    public String scrambleSwap(String s1,int start,int end,int sert){
        if(start==end||start>sert||end<sert) return s1;
        s1=s1.substring(0,start)+s1.substring(sert,end+1)+s1.substring(start,sert)+s1.substring(end+1);
        return s1;

    }

    public static void main(String[] args) {
        String s1="abc";
        System.out.println(s1.substring(0,0));
    }
}
